<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://qzone.qq.com/1678513665/page" prefix="p"%>
<%@page import="org.netEase.controller.*"%>
<%@page import="org.netEase.dao.*"%>
<%@page import="org.netEase.dao.impl.*"%>
<%@page import="org.netEase.entity.*"%>
<%@page import="org.netEase.util.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
<link rel="stylesheet" href="lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">

<title>Insert title here</title>

<style type="text/css">
#sdq{width:99%;border:solid 1px #DDDDDD;background-color:white;}
#sdq tr{line-height:23px}
#sdq tr th{background-color:#F5FAFE;border:solid 1px #DDDDDD;}
#sdq tr td{border:solid 1px #DDDDDD;}
</style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 
<span class="c-gray en">&gt;</span> 产品管理 <span class="c-gray en">&gt;</span> 
产品分类 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	<form action="zhutizu.shtml"  method="post" >
	<div style="width: 600px;    margin: auto;
    line-height: 60px;text-align: left;">
    
	父级：<select name="fun">
	<option value="-1">请选择</option>
	<c:forEach items="${lists}" var="li">
	<option value="${li.yid}">${li.name}</option>
	</c:forEach>
	</select>
	<input type="submit" value="查询" style="width: 84px;height: 22px;background-color: #D0DFEF;border:none; ">
	
	<a  href="zhutizuadd.shtml"><span style="background-color: #5CB85F ;font-size: 10px;color: white;margin: 10px;border: 5px solid #5CB85F ">&nbsp;&nbsp;&nbsp;	添加&nbsp;&nbsp;&nbsp;   </span></a>


	</div>
	</form>
	
	<table class="" id="sdq">
			<thead>
				<tr class="text-c">
					
					<th width="80"style="text-align: center;">ID</th>				
					<th style="text-align: center;">名称</th>
					<th style="text-align: center;">图片</th>
					<th width="100" style="text-align: center;">操作</th>
				</tr>
			</thead>
			<tbody>
			<c:forEach items="${zhutizu}" var="zhutizu">
				<tr  style="margin-bottom: 10px">
				<td style="text-align: center;">${zhutizu.zid}</td>
				<td style="text-align: center;">${zhutizu.zName}</td>
				<td style="text-align: center;"><img  src="../images/index/${zhutizu.zimg}"></td>
				<td style="text-align: center;"><span>修改</span>-<span><a href="zhuzudele.shtml?ids=${zhutizu.zid}">删除</a></span></td>
				</tr>
				</c:forEach>
			</tbody>
		</table>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script> 
<script type="text/javascript">
var setting = {
	view: {
		dblClickExpand: false,
		showLine: false,
		selectedMulti: false
	},
	data: {
		simpleData: {
			enable:true,
			idKey: "id",
			pIdKey: "pId",
			rootPId: ""
		}
	},
	callback: {
		beforeClick: function(treeId, treeNode) {
			var zTree = $.fn.zTree.getZTreeObj("tree");
			if (treeNode.isParent) {
				zTree.expandNode(treeNode);
				return false;
			} else {
				demoIframe.attr("src",treeNode.file + ".html");
				return true;
			}
		}
	}
};

var code;
		
function showCode(str) {
	if (!code) code = $("#code");
	code.empty();
	code.append("<li>"+str+"</li>");
}
		
$(document).ready(function(){
	var t = $("#treeDemo");
	t = $.fn.zTree.init(t, setting, zNodes);
	demoIframe = $("#testIframe");
	//demoIframe.on("load", loadReady);
	var zTree = $.fn.zTree.getZTreeObj("tree");
	//zTree.selectNode(zTree.getNodeByParam("id",'11'));
});
</script>
</body>
</html>